<template>
	<view class="">
		<fu-cell-group>
			<block v-for="(item,index) in list" :key="index">
				<fu-cell :title="item.name" :name="index" rightColor="#999999" isLink @click="handleClick"></fu-cell>
			</block>
		</fu-cell-group>
	</view>
</template>

<script setup>
	import { getCurrentInstance, ref } from 'vue';
	
	// data数据
	const { $openPage } = getCurrentInstance().appContext.config.globalProperties;
	const list = ref([
		{ name: '垂直选项卡&联动', url: 'vtabsList', query: {chain: true} },
		{ name: '垂直选项卡&不联动', url: 'vtabsList', query: {chain: false} }
	]);
	
	// methods方法
	const handleClick = (e) => {
		$openPage({name: list.value[e.name].url, query: list.value[e.name].query})
	}
</script>

<style>
</style>